{include file="common/header.tpl"}
<body>
{assign var="user" value="current"}
{include file="common/toptab.tpl"}

{* Check which item is currently active and set active tab to it*}
{if $smarty.get.sub1 eq "users"}
	{assign var="users" value="current"}
{elseif $smarty.get.sub1 eq "profile"}
	{assign var="profile" value="current"}
{elseif $smarty.get.sub1 eq "userpost"}
	{assign var="userpost" value="current"}
{else}
	{assign var="users" value="current"}
{/if}
<div id="tabs4">
	<ul>
		<li id="{$users}"><a href="?mod=userman&sub1=users"><span>{t}Users{/t}</span></a></li>
		<li id="{$profile}"><a href="?mod=userman&sub1=profile"><span>{t}Your Profile{/t}</span></a></li>
		<li id="{$userpost}"><a href="?mod=userman&sub1=userpost"><span>{t}Post{/t}</span></a></li>
	</ul>
</div>
{if $smarty.get.sub1 eq "profile"}
	<script src="includes/js/user.js" type="text/javascript"></script>
	{include file="userman_edituser.tpl"}
{elseif $smarty.get.sub1 eq "edituser"}
	<script src="includes/js/user.js" type="text/javascript"></script>
	{include file="userman_edituser.tpl"}
{elseif $smarty.get.sub1 eq "userpost"}
	<script src="includes/js/page.js" type="text/javascript"></script>
	<script src="includes/js/user.js" type="text/javascript"></script>
	{include file="userman_userpost.tpl"}
{else}
	<script src="includes/js/user.js" type="text/javascript"></script>
	{include file="userman_users.tpl"}
{/if}
</body>